/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package pe.edu.sistemas.sse.entity;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.Proxy;

/**
 *
 * @author laptop-w8
 */
@Entity
@Table(name = "LCONVEST")
@Proxy(lazy = false)
public class ConvocatoriaEstudio implements Serializable {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "CCONVEST")
    private long id_convocatoriaEstudio;
    @Column(name = "DGR_CONVEST")
    private String dgrado;
    @Column(name = "DEST_CONVEST")
    private String destudio;
    @Column(name = "DTIPCR_CONVEST")
    private String dtipoCarrea;
    @Column(name = "DCR_CONVEST")
    private String dcarrera;
    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "CCONV", referencedColumnName = "CCONV", nullable = false)
    private Convocatoria convocatoria;

    public long getId_convocatoriaEstudio() {
        return id_convocatoriaEstudio;
    }

    public void setId_convocatoriaEstudio(long id_convocatoriaEstudio) {
        this.id_convocatoriaEstudio = id_convocatoriaEstudio;
    }

    public String getDgrado() {
        return dgrado;
    }

    public void setDgrado(String dgrado) {
        this.dgrado = dgrado;
    }

    public String getDestudio() {
        return destudio;
    }

    public void setDestudio(String destudio) {
        this.destudio = destudio;
    }

    public String getDtipoCarrea() {
        return dtipoCarrea;
    }

    public void setDtipoCarrea(String dtipoCarrea) {
        this.dtipoCarrea = dtipoCarrea;
    }

    public String getDcarrera() {
        return dcarrera;
    }

    public void setDcarrera(String dcarrera) {
        this.dcarrera = dcarrera;
    }

    public Convocatoria getConvocatoria() {
        return convocatoria;
    }

    public void setConvocatoria(Convocatoria convocatoria) {
        this.convocatoria = convocatoria;
    }

}
